<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Graphical Progress Bar</title>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif; font-size:10px}
-->
</style>
</head>

<body>

<?
	$data[0] = 150;
	$data[1] = 741;
	$data[2] = 352;
	$data[3] = 147;
	
	$large=$data[0];
						
    for ($i=1; $i<=3; $i++)
		{
		if ($large<$data[$i]) 				
			$large=$data[$i]; 				
		}
	
	for ($f=0; $f<=3; $f++)
		{
			$progress[$f]=($data[$f]/$large)*100;
		}
	
	for ($s=0; $s<=3; $s++)
		{
		for ($e=1; $e<=$progress[$s]; $e++)
			{
				echo "<img src='progressbar.gif'>";
			}	
		echo " ". round($progress[$s],2) . " %";
		echo "<br><br>";
		}
?>

<span class="style1">Devloped By: Min Raj Gurung</span>
</body>
</html>
